<!DOCTYPE html><html><head><title>职业分析</title><meta charset='utf-8'><link href='https://dn-maxiang.qbox.me/res-min/themes/marxico.css' rel='stylesheet'><style></style></head><body><div id='preview-contents' class='note-content'>
                        
                    



<h2 id="职业分析">职业分析</h2>

<blockquote>
  <p>共  <code>search</code> 一个接口</p>
</blockquote>

<hr>

<h3 id="search"><code>search</code></h3>

<p><strong>接口说明</strong> </p>

<pre class="prettyprint hljs-dark"><code class="hljs">根据请求条件，查询并返回结果<br></code></pre>

<p><strong>URL</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs crystal"><span class="hljs-symbol">http:</span>/<span class="hljs-regexp">/115.159.207.95:9080/game</span><span class="hljs-regexp">/schoolGame/search</span>.<span class="hljs-keyword">do</span><br></code></pre>

<p><strong>请求参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs 1c"><span class="hljs-number">1</span>. dstart : <span class="hljs-string">"2017-06-01"</span>       <span class="hljs-meta"># 开始时间 </span><br><span class="hljs-number">2</span>. dend: <span class="hljs-string">"2017-06-07"</span>          <span class="hljs-meta"># 结束时间 </span><br><span class="hljs-number">3</span>. callback : <span class="hljs-string">""</span><br></code></pre>

<p><strong>返回参数</strong></p>

<pre class="prettyprint hljs-dark"><code class="hljs dts">{<br><span class="hljs-symbol">    res:</span> <span class="hljs-string">"0"</span>,<br><span class="hljs-symbol">    schoolGameSumData:</span> [      <span class="hljs-meta"># 汇总信息数据列表</span><br>        {<br><span class="hljs-symbol">            schoolCounts:</span> {      <span class="hljs-meta"># 数据列表 职业=人数</span><br>                <span class="hljs-number">1</span>: <span class="hljs-number">0</span>,            <span class="hljs-meta"># 职业1有0个人</span><br>                <span class="hljs-number">2</span>: <span class="hljs-number">0</span>,<br>                <span class="hljs-number">3</span>: <span class="hljs-number">0</span>,<br>                <span class="hljs-number">4</span>: <span class="hljs-number">0</span><br>            },<br><span class="hljs-symbol">            sum:</span> <span class="hljs-number">0</span>,               <span class="hljs-meta"># 汇总</span><br><span class="hljs-symbol">            title:</span> <span class="hljs-string">"活跃用户"</span>      <span class="hljs-meta"># 角色类型</span><br>        },<br>        {<br><span class="hljs-symbol">            schoolCounts:</span> {<br>                <span class="hljs-number">1</span>: <span class="hljs-number">785</span>,<br>                <span class="hljs-number">2</span>: <span class="hljs-number">992</span>,<br>                <span class="hljs-number">3</span>: <span class="hljs-number">559</span>,<br>                <span class="hljs-number">4</span>: <span class="hljs-number">1155</span><br>            },<br><span class="hljs-symbol">            sum:</span> <span class="hljs-number">3491</span>,<br><span class="hljs-symbol">            title:</span> <span class="hljs-string">"新增用户"</span><br>        }<br>    ],<br><span class="hljs-symbol">    schoolGameData:</span> [      <span class="hljs-meta"># 详细数据</span><br>        {<br><span class="hljs-symbol">            activeUser:</span> <span class="hljs-number">3489</span>,           <span class="hljs-meta"># 总活跃</span><br><span class="hljs-symbol">            activeUserSchoolCounts:</span> {   <span class="hljs-meta"># 活跃数据列表 职业=人数</span><br>                <span class="hljs-number">1</span>: <span class="hljs-number">785</span>,                 <span class="hljs-meta"># 职业1有785个人</span><br>                <span class="hljs-number">2</span>: <span class="hljs-number">991</span>,<br>                <span class="hljs-number">3</span>: <span class="hljs-number">558</span>,<br>                <span class="hljs-number">4</span>: <span class="hljs-number">1155</span><br>            },<br><span class="hljs-symbol">            dateStr:</span> <span class="hljs-string">"2016-05-19"</span>,      <span class="hljs-meta"># 日期</span><br><span class="hljs-symbol">            newUser:</span> <span class="hljs-number">3488</span>,              <span class="hljs-meta"># 总新增</span><br><span class="hljs-symbol">            newUserSchoolCounts:</span> {      <span class="hljs-meta"># 新增数据列表 职业=人数</span><br>                <span class="hljs-number">1</span>: <span class="hljs-number">785</span>,                 <span class="hljs-meta"># 职业1有785个人</span><br>                <span class="hljs-number">2</span>: <span class="hljs-number">992</span>,<br>                <span class="hljs-number">3</span>: <span class="hljs-number">557</span>,<br>                <span class="hljs-number">4</span>: <span class="hljs-number">1154</span><br>            }<br>        }<br>    ],<br><span class="hljs-symbol">    pieChartList:</span> [      <span class="hljs-meta"># 汇总信息图表数据</span><br>        {<br><span class="hljs-symbol">            header:</span> <span class="hljs-string">"活跃用户职业分布"</span>,<br><span class="hljs-symbol">            jsonStr:</span> <span class="hljs-string">"{"</span>names<span class="hljs-string">":["</span>战士<span class="hljs-string">","</span>骑士<span class="hljs-string">","</span>法师<span class="hljs-string">","</span>弓手<span class="hljs-string">"],"</span>hctitle<span class="hljs-string">":"</span>活跃用户职业分布<span class="hljs-string">","</span>data<span class="hljs-string">":[[["</span>战士<span class="hljs-string">",0],["</span>骑士<span class="hljs-string">",0],["</span>法师<span class="hljs-string">",0],["</span>弓手<span class="hljs-string">",0]]],"</span>rowkeys<span class="hljs-string">":["</span>[职业]战士 - 弓手<span class="hljs-string">"],"</span>type<span class="hljs-string">":"</span>pie<span class="hljs-string">"}"</span><br>        },<br>        {<br><span class="hljs-symbol">            header:</span> <span class="hljs-string">"新增用户职业分布"</span>,<br><span class="hljs-symbol">            jsonStr:</span> <span class="hljs-string">"{"</span>names<span class="hljs-string">":["</span>战士<span class="hljs-string">","</span>骑士<span class="hljs-string">","</span>法师<span class="hljs-string">","</span>弓手<span class="hljs-string">"],"</span>hctitle<span class="hljs-string">":"</span>新增用户职业分布<span class="hljs-string">","</span>data<span class="hljs-string">":[[["</span>战士<span class="hljs-string">",785],["</span>骑士<span class="hljs-string">",992],["</span>法师<span class="hljs-string">",559],["</span>弓手<span class="hljs-string">",1155]]],"</span>rowkeys<span class="hljs-string">":["</span>[职业]战士 - 弓手<span class="hljs-string">"],"</span>type<span class="hljs-string">":"</span>pie<span class="hljs-string">"}"</span><br>        }<br>    ]<br>}<br></code></pre></div></body></html>